package com.demo.svc;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service("rsagpk")
public class RsaGetPbKey {
	
	@Resource(name="encrytFunc")
	private Encryption crypt;
	
	public Map<String,String> doRun(String content) throws Exception{
		
		Map<String,String>  response = new HashMap<String, String>();
		
		response.put("N",crypt.getKeyN());
		response.put("E",crypt.getKeyE());
		
		byte[] bytes = crypt.encryptionByte("我们都是东北人呢哈 ！！！");
		String str = "";
		for(byte bt : bytes){
			str += bt;
		}
		System.out.println(">>>>>>>>>>>>>>>");
		System.out.println(str);
		
		return response;
	}
	
	
}
